//
//package com.rt.schedulebase.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.rt.schedulebase.dto.DictScheduleApmDto;
//import com.rt.schedulebase.entity.DictScheduleApm;
//import com.rt.schedulebase.mapper.DictScheduleApmMapper;
//import com.rt.schedulebase.service.IDictScheduleApmService;
//import org.springframework.stereotype.Service;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//
//@Service("DictScheduleApmServiceImpl_v2")
//public class DictScheduleApmServiceImpl extends ServiceImpl<DictScheduleApmMapper, DictScheduleApm> implements IDictScheduleApmService {
//    @Override
//    public boolean insertSelective(DictScheduleApm dictScheduleApm) {
//        return retBool(baseMapper.insert(dictScheduleApm));
//    }
//
//    @Override
//    public boolean deleteByPrimaryKey(String key) {
//        return retBool(baseMapper.deleteById(key));
//    }
//
//    @Override
//    public boolean updateByPrimaryKeySelective(DictScheduleApm dictScheduleApm) {
//        return retBool(baseMapper.updateById(dictScheduleApm));
//    }
//
//    @Override
//    public DictScheduleApm selectByPrimaryKey(String key) {
//        return baseMapper.selectById(key);
//    }
//
//    @Override
//    public List<DictScheduleApm> getList(DictScheduleApmDto dto) {
//        QueryWrapper<DictScheduleApm> qw = new QueryWrapper();
//        Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULE_APM", dto.getScheduleApm());
//        map.put("TIME_START", dto.getTimeStart());
//        map.put("TIME_END", dto.getTimeEnd());
//        map.put("APM_FLAG", dto.getApmFlag());
//        map.put("QUEUE_NAME", dto.getQueueName());
//        map.put("SCHEDULE_DATE", dto.getScheduleDate());
//        map.put("WEEK_DATE", dto.getWeekDate());
//        qw.allEq(map, false);
//        qw.ne("STOP_FLAG", "2");
//        qw.orderByAsc("TIME_START", "QUEUE_NAME");
//        List<DictScheduleApm> list = baseMapper.selectList(qw);
//        return list;
//    }
//
//    @Override
//    public List<DictScheduleApm> getListAll() {
//        return baseMapper.selectList(null);
//    }
//
//    @Override
//    public boolean delete(DictScheduleApm dictScheduleApm) {
//        UpdateWrapper<DictScheduleApm> uw = new UpdateWrapper();
//        Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dictScheduleApm.getApmCode());
//        uw.allEq(map, false);
//        return retBool(baseMapper.delete(uw));
//    }
//
//    @Override
//    public boolean update(DictScheduleApm dictScheduleApm) {
//        UpdateWrapper<DictScheduleApm> uw = new UpdateWrapper();
//        Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dictScheduleApm.getApmCode());
//        map.put("QUEUE_NAME", dictScheduleApm.getScheduleApm());
//        map.put("SCHEDULE_APM", dictScheduleApm.getScheduleApm());
//        map.put("TIME_START", dictScheduleApm.getTimeStart());
//        map.put("TIME_END", dictScheduleApm.getTimeEnd());
//        map.put("SCHEDULE_DATE", dictScheduleApm.getScheduleDate());
//        map.put("WEEK_DATE", dictScheduleApm.getWeekDate());
//        uw.allEq(map, false);
//        return retBool(baseMapper.update(dictScheduleApm, uw));
//    }
//
//    @Override
//    public DictScheduleApm getInfo(DictScheduleApmDto dto) {
//        QueryWrapper<DictScheduleApm> qw = new QueryWrapper();
//        Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        qw.allEq(map, false);
//        return baseMapper.selectOne(qw);
//    }
//}
